<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>后台首页</title>
    <link href="static/bootstrap/bootstrap.min.css" rel="stylesheet">
    <style>
        :root {
            --primary-color: #4e73df;
            --secondary-color: #858796;
            --light-color: #f8f9fc;
            --dark-color: #5a5c69;
        }

        body {
            font-family: 'Nunito', sans-serif;
            background-color: var(--light-color);
            padding: 20px;
        }

        .welcome-card {
            background-color: #fff;
            border-radius: 0.35rem;
            box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
            padding: 1.5rem;
        }

        .welcome-header {
            color: var(--primary-color);
            font-weight: 700;
            margin-bottom: 1rem;
        }

        .welcome-content {
            color: var(--dark-color);
            font-size: 1.1rem;
        }

        .user-name {
            font-weight: 600;
            color: var(--primary-color);
        }
    </style>
</head>
<body>
<div class="container">
    <div class="row justify-content-center">
        <div class="col-lg-8">
            <div class="welcome-card">
                <h2 class="welcome-header">欢迎来到后台管理系统</h2>
                <p class="welcome-content">
                    您好，<span id="userName" class="user-name"></span>！
                    很高兴再次见到您。今天是美好的一天，祝您工作顺利！
                </p>
            </div>
        </div>
    </div>
</div>

<script src="static/bootstrap/jquery-3.5.1.slim.min.js"></script>
<script src="static/bootstrap/popper.min.js"></script>
<script src="static/bootstrap/bootstrap.min.js"></script>
<script>
    document.addEventListener('DOMContentLoaded', function() {
        const userData = localStorage.getItem('user');
        if (userData) {
            const user = JSON.parse(userData);
            document.getElementById('userName').textContent = user.fullname || '尊敬的用户';
        } else {
            document.getElementById('userName').textContent = '尊敬的用户';
        }
    });
</script>
</body>
</html>